package se.sll.service.catalogue.common.exception;

import java.util.Set;
import javax.validation.ConstraintViolation;

/**
 * Exception for Bean Validation constraint violations
 * 
 * @author Christer Palm, Nogui
 */
public class ConstraintViolationException extends ServiceException {
    private final Set<ConstraintViolation<Object>> constraintViolations;

    public ConstraintViolationException(Set<ConstraintViolation<Object>> constraintViolations) {
        this.constraintViolations = constraintViolations;
    }

    public Set<ConstraintViolation<Object>> getConstraintViolations() {
        return constraintViolations;
    }
}
